package cn.maxwell.org.domain;

import cn.maxwell.basic.domain.BaseDomain;
import cn.maxwell.system.domain.Role;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor //有参构造
@NoArgsConstructor //无参构造
public class Employee extends BaseDomain {
    //员工名称
    private String username;
    //员工电话
    private String phone;
    //员工邮箱
    private String email;
    //员工盐值
    private String salt;
    //员工密码
    private String password;
    //员工年龄
    private Integer age;
    //员工状态：1启用 0禁用
    private Integer state = 1;
    //员工所属部门ID
    private Long department_id;
    //登录信息ID
    private Long logininfo_id;
    //店铺ID：为空=平台系统管理员，不为空=店铺管理员
    private Long shop_id;
    //部门信息
    private Department department;
    //店铺信息
    private Shop shop;
    //第二次输入的密码信息
    private String ComfirmPassword;
    //方便从中间表中为当前员工添加角色
    private Long role_id;
    //角色
    private Role role;
}
